<?php
namespace app\common\validate;
use think\Validate;
use think\Request;
class Content extends Validate{
    protected $rule = [
        'title'  =>  'require',
        'image' =>  'require',
        'descrip' =>  'require',
        'content' =>  'require',
    ];

    protected $message  =   [
        'title.require' => '标题不能为空',
        'image.require' => '图片不能为空',
        'descrip.require'   => '描述不能为空',
        'content.require'   => '内容不能为空',
    ];
}